package com.syh.jn.scm.service.impl.supplier.statistics;

import com.alibaba.dubbo.config.annotation.Service;
import com.syh.jn.scm.dto.supplier.statistics.stock.StockLossReportVo;
import com.syh.jn.scm.infrastructure.repository.utils.MybatisTemplate;
import com.syh.jn.scm.service.api.supplier.statistics.StockLossReportService;

import java.util.List;
import java.util.Map;

@Service
public class StockLossReportServiceImpl implements StockLossReportService {
  @Override
  public List<StockLossReportVo> stockLossReport(Map<String, Object> params) {
    return MybatisTemplate.selectList("stockLossReportQRepository.stockLossReport", params);
  }

  @Override
  public Integer stockLossReportCount(Map<String, Object> params) {
    return MybatisTemplate.selectOne("stockLossReportQRepository.stockLossReportCount",params);
  }
}
